import Home from '@/module/home/page/home.vue';
import question_list from '@/module/cms/page/question_list.vue';
import question_add from '@/module/cms/page/question_add.vue';
import question_edit from '@/module/cms/page/question_edit.vue';
import page_html from '@/module/cms/page/question_html.vue';
import site_list from '@/module/cms/site/site_list.vue';
import operationResult_list from '@/module/cms/operation/operationResult_list.vue';
import template_list from '@/module/cms/operation/operation_list.vue';
import template_submit from '@/module/cms/operation/operation_submit.vue';
import login from '@/module/Login.vue'

export default [
  {
    path: '/login',
    component: login,
    name: 'Login',
    hidden: true
  },
  {
  path: '/cms',
  component: Home,
  name: '题库',
  hidden: false,
  children: [
    {path: '/cms/site/list/', name: '题目列表', component: site_list, hidden: false},
    {path: '/cms/exam/add/', name: '新增题目', component: question_add, hidden: false},
    {path: '/cms/exam/update/', name: '修改题目', component: question_edit, hidden: true},
    {path: '/cms/template/list', name: '课堂操作', component: template_list, hidden: false},
    {path: '/cms/template/submit', name: '新增课堂操作', component: template_submit, hidden: false},
    {path: '/cms/operationResult/list/', name: '课堂操作完成情况', component: operationResult_list, hidden: false},
    {path: '/cms/question/add', name: '添加用户', component: question_add, hidden: false},
    {path: '/cms/question/list', name: '用户管理', component: question_list, hidden: false},
  ]

  // ,
  // redirect: '/home',
  // children: [
  //   {path: 'home', component: Home}
  // ]
}
// {path: '/login',component: login}

]
